package guiTesting;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import user.AddUser;

public class ProfMgtTabbed extends JFrame{

    private  JTabbedPane pane;
    private HandCodedGUI searchU; 
    private AddUser addU;
    private SearchGroups searchG;
    private AddGroup addG;
    
    //constructor 
	public  ProfMgtTabbed(){
		super(); 
		 pane = new JTabbedPane();
		 Dimension d = new Dimension(500, 300);
		 pane.setPreferredSize(d);
		 pane.setBackground(Color.red);

		setTitle("ProfileMangementDemo"); 
		getContentPane().add(pane);
		
		searchU = new HandCodedGUI(); 
		pane.addTab("Search Users", searchU.getAllComp());
		searchU.setPreferredSize(d);
		
		addU = new AddUser(); 
		addU.setPreferredSize(d);
		pane.addTab("Add User", addU);
		
		searchG = new SearchGroups();
		pane.addTab("Search Groups", searchG.getAllComp());
		
		addG = new AddGroup(); 
		pane.addTab("Add Group", addG); 
		
	
		
	}
	

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		ProfMgtTabbed g = new ProfMgtTabbed();
		 Dimension e = new Dimension(500, 300);
		g.setVisible(true);
	}

}
